package com.hjl.spring6.bean;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author ServivE
 * @version 0.1
 * @className TestUser
 * @description
 * @date 2024/8/6 19:22
 * @since jdk11
 */
public class TestUser {
    @Test
    public void testUser() {
        ApplicationContext ac = new ClassPathXmlApplicationContext("bean.xml");
        User user = ac.getBean("user", User.class);
        System.out.println(user);
    }
}
